PEReimportSubreport
Use PEReimportSubreport to reimport a subreport into the specified main report.
C Syntax
BOOL CRPE_API PEReimportSubreport (
short printJob,
DWORD subreportHandle,
BOOL FAR *linkChanged,
BOOL FAR *reimported );
Parameters
printJob
| Specifies the print job for which you want to reimport a subreport.
|
subreportHandle
| Specifies the handle of the subreport that you want to reimport.
|
linkChanged
| Specifies a pointer to a Boolean value indicating whether or not the link has changed. See Remarks below.
|
reimported
| Specifies a pointer to a Boolean value indicating whether or not the subreport has been reimported. See Remarks below.
|
Returns
- TRUE if the call is successful and the subreport is up-to-date or was reimported with fixed or
missing links.
- FALSE if the call fails, the subreport path is invalid, or the reimport failed. The specific error that occurred can be retrieved with PEGetErrorCode.
Remarks
- Parameter linkChanged
- will be set to FALSE if the subreport is reloaded and the links are fixed.
- will be set to TRUE if the subreport is reloaded but missing links.
- Parameter reimported
- will be set to FALSE if the subreport is up-to-date, or if the reimport failed due to an invalid path or other error.
- will be set to TRUE if the subreport was reloaded with links fixed or missing.
VB Syntax
Declare Function PEReimportSubreport Lib "crpe32.dll" (
ByVal printJob As Integer, ByVal subreportHandle As Long,
linkChanged As Long, reimported As Long ) As Integer